<div class="bg-light lter b-b wrapper-md ng-scope">
    <h4 class="m-n font-thin">流水管理</h4>
    <button ui-sref="app.sellSeting" class="btn-back btn btn-dark btn-sm btn-rounded">
        返回
    </button>
</div>
<div class="wrapper-md ng-scope" ng-controller="revenueSettingCtrl">
    <div class="panel panel-default">
        <div class="row wrapper">
            <div class="col-sm-9">
                <form class="form-inline ng-pristine ng-valid">
                 <!-- <div class="form-group">
                        <label class="control-label">类型:</label>
                        <select class="input-sm form-control" ng-model="revenueSetting.type">
                            <option>全部</option>
                            <option value="0">商家&#45;&#45;商家</option>
                            <option value="1">商家&#45;&#45;用户</option>
                            <option value="2">用户&#45;&#45;商家</option>
                        </select>
                    </div>
                    <button class="btn btn-sm btn-default" ng-click="query()">查询</button>-->
                </form>
            </div>
            <div class="col-sm-3">
                <div class=" pull-right">
                    <button class="btn btn-sm btn-info" ui-sref="app.revenueSettingAdd">添加</button>
                </div>
            </div>
            <div class="clearfix"></div>
        </div>
        <div class="table-responsive">
            <table class="table table-striped b-t b-light">
                <thead>
                <tr>
                    <th>类型</th>
                    <th>值</th>
                    <th width="200" class="text-center">操作</th>
                </tr>
                </thead>
                <tbody>
                    <tr ng-repeat="a in list">
                        <td>
                            <span ng-if="a.type == 0">商家-推荐-商家</span>
                            <span ng-if="a.type == 1">商家-推荐-用户</span>
                            <span ng-if="a.type == 2">用户-推荐-商家</span>
                        </td>
                        <td>{{a.value}}</td>
                        <td class="t-btns text-center" width="200">
                            <button class="btn btn-sm btn-info" ui-sref="app.revenueSettingEdit({id:a.id})">修改</button>
                            <button class="btn btn-sm btn-danger"ng-click="openDelete(a.id,a.type)">删除</button>
                        </td>
                    </tr>
                </tbody>
            </table>
            <div ng-if="list.length<=0 && !app.loading" class="padder-v text-center">
                <span class="h6">~未搜索到任何数据~</span>
            </div>
            <div>
                <circle-loading ng-if="app.loading"></circle-loading>
            </div>
        </div>
        <footer class="panel-footer">
            <div class="row">
                <div class="col-sm-4 hidden-xs">
                </div>
                <div class="col-sm-4 text-center">
                    <small class="text-muted inline m-t-sm m-b-sm">显示第 {{startRow}} 至 {{endRow}} 项结果，共 {{totalItems}} 项</small>
                </div>
                <div class="col-sm-4 text-right text-center-xs">
                    <pagination boundary-links="true" total-items="totalItems" ng-model="currentPage"
                                ng-change="pageChanged()" max-size="{{maxPageRow}}" class="pagination-sm m-t-none m-b"
                                previous-text="上一页" next-text="下一页"
                                first-text="首页" last-text="尾页"></pagination>
                </div>
            </div>
        </footer>
    </div>
</div>
